package com.aaa.ssm.controller;


import com.aaa.ssm.result.AjaxResult;
import com.aaa.ssm.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * @author lj
 * @date 2021/11/24 19:07
 */
@RestController
@RequestMapping("sys")
public class SysController {

    @Autowired
    private SystemService systemService;

    @RequestMapping("login")
    public AjaxResult login(String username,String password){
        return systemService.login(username, password);
    }
    @RequestMapping("getInfo")
    public AjaxResult getInfo(){
        return systemService.getInfo();
    }

}
